//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.itheima.pinda.authority.dto.auth;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

@JsonInclude(Include.NON_NULL)
public class RouterMeta implements Serializable {
    private static final long serialVersionUID = 5499925008927195914L;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("图标")
    private String icon = "";
    @ApiModelProperty("面包屑")
    private Boolean breadcrumb = true;

    public static RouterMetaBuilder builder() {
        return new RouterMetaBuilder();
    }

    public String getTitle() {
        return this.title;
    }

    public String getIcon() {
        return this.icon;
    }

    public Boolean getBreadcrumb() {
        return this.breadcrumb;
    }

    public void setTitle(final String title) {
        this.title = title;
    }

    public void setIcon(final String icon) {
        this.icon = icon;
    }

    public void setBreadcrumb(final Boolean breadcrumb) {
        this.breadcrumb = breadcrumb;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof RouterMeta)) {
            return false;
        } else {
            RouterMeta other = (RouterMeta)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label47: {
                    Object this$title = this.getTitle();
                    Object other$title = other.getTitle();
                    if (this$title == null) {
                        if (other$title == null) {
                            break label47;
                        }
                    } else if (this$title.equals(other$title)) {
                        break label47;
                    }

                    return false;
                }

                Object this$icon = this.getIcon();
                Object other$icon = other.getIcon();
                if (this$icon == null) {
                    if (other$icon != null) {
                        return false;
                    }
                } else if (!this$icon.equals(other$icon)) {
                    return false;
                }

                Object this$breadcrumb = this.getBreadcrumb();
                Object other$breadcrumb = other.getBreadcrumb();
                if (this$breadcrumb == null) {
                    if (other$breadcrumb != null) {
                        return false;
                    }
                } else if (!this$breadcrumb.equals(other$breadcrumb)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof RouterMeta;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $title = this.getTitle();
        result = result * 59 + ($title == null ? 43 : $title.hashCode());
        Object $icon = this.getIcon();
        result = result * 59 + ($icon == null ? 43 : $icon.hashCode());
        Object $breadcrumb = this.getBreadcrumb();
        result = result * 59 + ($breadcrumb == null ? 43 : $breadcrumb.hashCode());
        return result;
    }

    public String toString() {
        return "RouterMeta(title=" + this.getTitle() + ", icon=" + this.getIcon() + ", breadcrumb=" + this.getBreadcrumb() + ")";
    }

    public RouterMeta() {
    }

    public RouterMeta(final String title, final String icon, final Boolean breadcrumb) {
        this.title = title;
        this.icon = icon;
        this.breadcrumb = breadcrumb;
    }

    public static class RouterMetaBuilder {
        private String title;
        private String icon;
        private Boolean breadcrumb;

        RouterMetaBuilder() {
        }

        public RouterMetaBuilder title(final String title) {
            this.title = title;
            return this;
        }

        public RouterMetaBuilder icon(final String icon) {
            this.icon = icon;
            return this;
        }

        public RouterMetaBuilder breadcrumb(final Boolean breadcrumb) {
            this.breadcrumb = breadcrumb;
            return this;
        }

        public RouterMeta build() {
            return new RouterMeta(this.title, this.icon, this.breadcrumb);
        }

        public String toString() {
            return "RouterMeta.RouterMetaBuilder(title=" + this.title + ", icon=" + this.icon + ", breadcrumb=" + this.breadcrumb + ")";
        }
    }
}
